package scsc.web.xzgl.inspection.data;

import scsc.pub.data.InspectionRecord;
import java.io.Serializable;
import scsc.pub.tools.StringUtil;
public class InspectionData extends InspectionRecord implements Serializable {

	
	private String memberName;
	private String userName;
	private String inspectionBeginDate;
	private String inspectionEndDate;
	public String getMemberName() {
		return memberName;
	}
	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getInspectionBeginDate() {
		return inspectionBeginDate;
	}
	public void setInspectionBeginDate(String inspectionBeginDate) {
		this.inspectionBeginDate = inspectionBeginDate;
	}
	public String getInspectionEndDate() {
		return inspectionEndDate;
	}
	public void setInspectionEndDate(String inspectionEndDate) {
		this.inspectionEndDate = inspectionEndDate;
	}
	
	/**
	 * @Integer inspectionId
	 * @param memberId
	 * @param inspectionDate
	 * @param inspectionCircs
	 * @param userId
	 * @param latestDate
	 * @param remark
	 * @param memberName
	 * @param userName
	 */
	public InspectionData(Integer inspectionId,int memberId, String inspectionDate, String inspectionCircs, String userId, String latestDate, String remark,String memberName,String userName) {
		this.setInspectionId(inspectionId);
		this.setMemberId(memberId);
		this.setInspectionDate(inspectionDate.substring(0,10));
		this.setInspectionCircs(inspectionCircs);
		this.setUserId(userId);
		this.setLatestDate(latestDate.substring(0,10));
		this.setRemark(remark);
		this.setMemberName(memberName);
		this.setUserName(userName);
		// TODO Auto-generated constructor stub
	}
	/**
	 * @param memberId
	 * @param userId
	 */
	public InspectionData(Integer inspectionId,String memberName,String inspectionDate) {
		this.setInspectionId(inspectionId);
		this.setMemberName(memberName);
		this.setInspectionDate(inspectionDate.substring(0,10));
		// TODO Auto-generated constructor stub
	}
	
	public InspectionData(){
		init();		
	}
	
	public void reset(){
		init();		
	}
	
	public void init(){
		this.setInspectionDate("");
		this.setInspectionCircs("");
		this.setUserId("");
		this.setLatestDate("");
		this.setRemark("");
	}
	
	
	
	
}
